
public class Person {
    private String name ;
    private  int age ;

    public static void main(String[] args){

        System.out.print("persion");
    }



    //方法
    private void setName(String name){
        this.name = name;
    }

    private void setAge(int age){

        if(age < 0 || age >100){
          throw new IllegalArgumentException("参数不对");
        }

        this.age = age;
    }


    public int getAge(){
        return this.age;
    }

    public String getName(){
        return this.name;
    }

}